package com.foruo.learn.designmode.command;

/**
 * 命令请求者
 * @author GaoYuan
 * @date 2018/11/11 下午2:07
 */
public class Invoker {

    private ICommand command;

    public void setCommand(ICommand command) {
        this.command = command;
    }

    /**
     * 执行
     */
    public void run(){
        command.execute();
    }
}
